#!/bin/bash

### go to this directory
cd $(dirname $0)

### get the variables
. ./config.sh

### dump the database into the file dbname.sql
mysqldump --add-drop-table --allow-keyword \
          --complete-insert \
          --extended-insert \
          --host=$dbhost --user=$dbuser --password=$dbpasswd \
          --databases $dbname > database.sql


